2026-10-13T11:58:32.4243634Z ##[group]Run node scripts/deploy.mjs deploy --only "identity,search,webhooks,security" --force --no-migrations --concurrency 2
2026-10-13T11:58:32.4243865Z [36;1mnode scripts/deploy.mjs deploy --only "identity,search,webhooks,security" --force --no-migrations --concurrency 2[0m
2026-10-13T11:58:32.4243897Z shell: /usr/bin/bash -e {0}
2026-10-13T11:58:32.4243932Z env:
2026-10-13T11:58:32.4243954Z   CARGO_INCREMENTAL: 0
2026-10-13T11:58:32.4243972Z   CARGO_TERM_COLOR: never
2026-10-13T11:58:32.4244044Z   CLOUDFLARE_ACCOUNT_ID: 1e6f2cffa3f445920836e8ebe446bb58
2026-10-13T11:58:32.4244148Z   CLOUDFLARE_API_TOKEN: ***
2026-10-13T11:58:32.4244194Z   RUSTC_WRAPPER: /home/node/.cargo/bin/sccache
2026-10-13T11:58:32.4244213Z   SCCACHE_GHA_ENABLED: true
2026-10-13T11:58:32.4244234Z   SCCACHE_IDLE_TIMEOUT: 0
2026-10-13T11:58:32.4244256Z   SCCACHE_IGNORE_SERVER_IO_ERROR: 1
2026-10-13T11:58:32.4244337Z   STATUS_DEPLOY_TOKEN: ***
2026-10-13T11:58:32.4244355Z   WRANGLER_SEND_METRICS: false
2026-10-13T11:58:32.4244371Z ##[endgroup]
2026-10-13T11:58:32.9534752Z Deploying 9954332ed63c (Merge branch 'worktree-agent-ac950b9c891220ad3')
2026-10-13T11:58:32.9535019Z 
2026-10-13T11:58:32.9544109Z unit      stage  action  live          migrations  why
2026-10-13T11:58:32.9544750Z --------  -----  ------  ------------  ----------  ----------------------------------------------------------------------
2026-10-13T11:58:32.9544924Z identity  core   deploy  49e1e10fc41b  -           5 changed files (crates/contracts/src/billing.rs via crates/contracts)
2026-10-13T11:58:32.9545033Z search    core   deploy  49e1e10fc41b  -           5 changed files (crates/contracts/src/billing.rs via crates/contracts)
2026-10-13T11:58:32.9545124Z webhooks  core   deploy  49e1e10fc41b  -           5 changed files (crates/contracts/src/billing.rs via crates/contracts)
2026-10-13T11:58:32.9545215Z security  core   deploy  49e1e10fc41b  -           5 changed files (crates/contracts/src/billing.rs via crates/contracts)
2026-10-13T11:58:32.9548150Z 
2026-10-13T11:58:32.9548334Z 4 to deploy: core (identity, search, webhooks, security)
2026-10-13T11:58:33.7020538Z == core: identity, search, webhooks, security
2026-10-13T11:58:35.7712584Z [search]  ⛅️ wrangler 4.146.0
2026-10-13T11:58:36.5206698Z [search] ────────────────────
2026-10-13T11:58:36.5206881Z [search] [custom build] Running: node ../../scripts/build-rust-worker.mjs
2026-10-13T11:58:36.5206907Z [identity]  ⛅️ wrangler 4.146.0
2026-10-13T11:58:36.5206995Z [identity] ────────────────────
2026-10-13T11:58:36.5207076Z [identity] [custom build] Running: node ../../scripts/build-rust-worker.mjs
2026-10-13T11:58:49.0605270Z [search] [custom build] [INFO]: Checking for the Wasm target...
2026-10-13T11:58:49.2784592Z [search] [custom build] 
2026-10-13T11:58:49.2784703Z [search] [custom build] [INFO]: Compiling to Wasm...
2026-10-13T11:58:49.2784738Z [search] [custom build] 
2026-10-13T11:58:49.3474732Z [identity] [custom build] [INFO]: Checking for the Wasm target...
2026-10-13T11:58:49.3477909Z [identity] [custom build] 
2026-10-13T11:58:49.4153126Z [identity] [custom build] [INFO]: Compiling to Wasm...
2026-10-13T11:58:49.4154432Z [identity] [custom build] 
2026-10-13T11:58:49.5147621Z [identity] [custom build]     Blocking waiting for file lock on package cache
2026-10-13T11:58:49.5148284Z [identity] [custom build] 
2026-10-13T11:58:49.5204757Z [search] [custom build]     Blocking waiting for file lock on package cache
2026-10-13T11:58:49.5208167Z [search] [custom build] 
2026-10-13T11:58:49.7488329Z [search] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
2026-10-13T11:58:49.7488466Z [search] [custom build] 
2026-10-13T11:58:49.7777315Z [identity] [custom build]     Blocking waiting for file lock on build directory
2026-10-13T11:58:49.7782396Z [identity] [custom build] 
2026-10-13T11:59:00.7177397Z [search] [custom build]    Compiling g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
2026-10-13T11:59:00.9360517Z [search] [custom build] 
2026-10-13T11:59:01.3601557Z [search] [custom build]    Compiling g1t-search v0.1.0 (/home/runner/work/repo/services/search)
2026-10-13T11:59:01.3601683Z [search] [custom build] 
2026-10-13T11:59:14.3034647Z [search] [custom build]     Finished `release` profile [optimized] target(s) in 25.08s
2026-10-13T11:59:14.5386715Z [search] [custom build] 
2026-10-13T11:59:14.5387119Z [identity] [custom build]    Compiling g1t-secrets v0.1.0 (/home/runner/work/repo/crates/secrets)
2026-10-13T11:59:14.5387176Z [identity] [custom build] 
2026-10-13T11:59:14.9242118Z [identity] [custom build]    Compiling g1t-identity v0.1.0 (/home/runner/work/repo/services/identity)
2026-10-13T11:59:14.9244918Z [identity] [custom build] 
2026-10-13T11:59:15.2772057Z [search] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
2026-10-13T11:59:15.2775318Z [search] [custom build] 
2026-10-13T11:59:15.8203968Z [identity] [custom build] warning: unused import: `is_valid_namespace`
2026-10-13T11:59:15.8204220Z [identity] [custom build]   --> services/identity/src/github.rs:29:128
2026-10-13T11:59:15.8204265Z [identity] [custom build]    |
2026-10-13T11:59:15.8204452Z [identity] [custom build] 29 | ...ction_owner_name, is_claimable_name, is_reserved_name, is_valid_namespace, new_id};
2026-10-13T11:59:15.8204577Z [identity] [custom build]    |                                                           ^^^^^^^^^^^^^^^^^^
2026-10-13T11:59:15.8204615Z [identity] [custom build]    |
2026-10-13T11:59:15.8204699Z [identity] [custom build]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
2026-10-13T11:59:15.8204715Z [identity] [custom build] 
2026-10-13T11:59:15.8204728Z [identity] [custom build] 
2026-10-13T11:59:15.8370069Z [identity] [custom build] warning: unused import: `permissions_of`
2026-10-13T11:59:15.8370303Z [identity] [custom build]   --> services/identity/src/token_reach.rs:39:69
2026-10-13T11:59:15.8370321Z [identity] [custom build]    |
2026-10-13T11:59:15.8370474Z [identity] [custom build] 39 | use g1t_contracts::scopes::{RepositorySelection, Scope, TokenReach, permissions_of, resolve_permissions, scopes_text};
2026-10-13T11:59:15.8370611Z [identity] [custom build]    |                                                                     ^^^^^^^^^^^^^^
2026-10-13T11:59:15.8370636Z [identity] [custom build] 
2026-10-13T11:59:15.8370652Z [identity] [custom build] 
2026-10-13T11:59:16.8370720Z [search] [custom build] [INFO]: :-)Done in 27.40s
2026-10-13T11:59:16.8370998Z [search] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/search/build/.tmp.
2026-10-13T11:59:16.8371037Z [search] [custom build] 
2026-10-13T11:59:16.8371063Z [search] [custom build] 
2026-10-13T11:59:16.8371088Z [search] [custom build]   index.js  26.7kb
2026-10-13T11:59:16.8371106Z [search] [custom build] 
2026-10-13T11:59:16.8371133Z [search] [custom build] ⚡ Done in 13ms
2026-10-13T11:59:16.8371154Z [search] [custom build] 
2026-10-13T11:59:18.0594394Z [search] Total Upload: 1640.17 KiB / gzip: 385.80 KiB
2026-10-13T11:59:21.4264197Z [search] Worker Startup Time: 4 ms
2026-10-13T11:59:21.7012703Z [search] Your Worker has access to the following bindings:
2026-10-13T11:59:21.7012810Z [search] Binding                          Resource         
2026-10-13T11:59:21.7012872Z [search] env.JOBS (inherited)             Queue            
2026-10-13T11:59:21.7012936Z [search] env.DB (g1t-search)              D1 Database      
2026-10-13T11:59:21.7012984Z [search] env.IDENTITY (g1t-identity)      Worker           
2026-10-13T11:59:21.7013036Z [search] env.REPOS (g1t-repos)            Worker           
2026-10-13T11:59:21.7013085Z [search] env.WORK (g1t-work)              Worker           
2026-10-13T11:59:21.7013130Z [search] env.BILLING (g1t-billing)        Worker           
2026-10-13T11:59:21.7013144Z [search] Uploaded g1t-search (3.52 sec)
2026-10-13T11:59:22.4145012Z [search] Deployed g1t-search triggers (0.98 sec)
2026-10-13T11:59:22.4147199Z [search]   Producer for g1t-search-jobs
2026-10-13T11:59:22.4148711Z [search]   Consumer for g1t-events-search
2026-10-13T11:59:22.4148741Z [search]   Consumer for g1t-search-jobs
2026-10-13T11:59:22.4151851Z [search] Current Version ID: 46373d5d-b4c1-4d2f-b319-7318400589d9
2026-10-13T11:59:24.2438261Z [webhooks]  ⛅️ wrangler 4.146.0 (update available 4.150.0)
2026-10-13T11:59:24.4852861Z [webhooks] ───────────────────────────────────────────────
2026-10-13T11:59:24.4853042Z [webhooks] [custom build] Running: node ../../scripts/build-rust-worker.mjs
2026-10-13T11:59:24.9102700Z [webhooks] [custom build] [INFO]: Checking for the Wasm target...
2026-10-13T11:59:24.9105069Z [webhooks] [custom build] 
2026-10-13T11:59:24.9664539Z [webhooks] [custom build] [INFO]: Compiling to Wasm...
2026-10-13T11:59:24.9667001Z [webhooks] [custom build] 
2026-10-13T11:59:25.1596053Z [webhooks] [custom build]     Blocking waiting for file lock on build directory
2026-10-13T11:59:25.1598289Z [webhooks] [custom build] 
2026-10-13T11:59:28.1981079Z [identity] [custom build] warning: function `counts_against_allowance` is never used
2026-10-13T11:59:28.4247113Z [identity] [custom build]   --> services/identity/src/invites/friends.rs:84:8
2026-10-13T11:59:28.4247190Z [identity] [custom build]    |
2026-10-13T11:59:28.4247351Z [identity] [custom build] 84 | pub fn counts_against_allowance(status: InviteStatus, used: bool) -> bool {
2026-10-13T11:59:28.4247417Z [identity] [custom build]    |        ^^^^^^^^^^^^^^^^^^^^^^^^
2026-10-13T11:59:28.4247431Z [identity] [custom build]    |
2026-10-13T11:59:28.4247524Z [identity] [custom build]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
2026-10-13T11:59:28.4247539Z [identity] [custom build] 
2026-10-13T11:59:28.4247552Z [identity] [custom build] 
2026-10-13T11:59:55.9975544Z [identity] [custom build] warning: `g1t-identity` (lib) generated 3 warnings (run `cargo fix --lib -p g1t-identity` to apply 2 suggestions)
2026-10-13T11:59:56.2526656Z [identity] [custom build]     Finished `release` profile [optimized] target(s) in 1m 06s
2026-10-13T11:59:56.2526738Z [identity] [custom build] 
2026-10-13T11:59:56.2526857Z [webhooks] [custom build]    Compiling g1t-webhooks v0.1.0 (/home/runner/work/repo/services/webhooks)
2026-10-13T11:59:56.2526880Z [webhooks] [custom build] 
2026-10-13T11:59:58.3604059Z [identity] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
2026-10-13T11:59:58.5756101Z [identity] [custom build] 
2026-10-13T12:00:05.1625240Z [identity] [custom build] [INFO]: :-)Done in 1m 15s
2026-10-13T12:00:05.4130936Z [identity] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/identity/build/.tmp.
2026-10-13T12:00:05.4131027Z [identity] [custom build] 
2026-10-13T12:00:05.4131050Z [identity] [custom build] 
2026-10-13T12:00:05.4131083Z [identity] [custom build]   index.js  27.7kb
2026-10-13T12:00:05.4131115Z [identity] [custom build] 
2026-10-13T12:00:05.4131140Z [identity] [custom build] ⚡ Done in 36ms
2026-10-13T12:00:05.4131161Z [identity] [custom build] 
2026-10-13T12:00:07.0155439Z [identity] Total Upload: 4684.27 KiB / gzip: 1116.91 KiB
2026-10-13T12:00:07.4887937Z [webhooks] [custom build]     Finished `release` profile [optimized] target(s) in 42.49s
2026-10-13T12:00:07.4888029Z [webhooks] [custom build] 
2026-10-13T12:00:08.1844282Z [webhooks] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
2026-10-13T12:00:08.1844433Z [webhooks] [custom build] 
2026-10-13T12:00:08.9487838Z [webhooks] [custom build] [INFO]: :-)Done in 43.98s
2026-10-13T12:00:08.9489737Z [webhooks] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/webhooks/build/.tmp.
2026-10-13T12:00:08.9489801Z [webhooks] [custom build] 
2026-10-13T12:00:08.9760168Z [webhooks] [custom build] 
2026-10-13T12:00:08.9760317Z [webhooks] [custom build]   index.js  27.6kb
2026-10-13T12:00:08.9760339Z [webhooks] [custom build] 
2026-10-13T12:00:08.9760389Z [webhooks] [custom build] ⚡ Done in 17ms
2026-10-13T12:00:08.9760406Z [webhooks] [custom build] 
2026-10-13T12:00:09.8953298Z [identity] Worker Startup Time: 5 ms
2026-10-13T12:00:09.8984942Z [identity] Your Worker has access to the following bindings:
2026-10-13T12:00:09.8985215Z [identity] Binding                                                          Resource                  
2026-10-13T12:00:09.8985763Z [identity] env.AVATARS (e627b571f07047e187c03e1fc2b3bbdd)                   KV Namespace              
2026-10-13T12:00:09.8985881Z [identity] env.EMAIL (unrestricted)                                         Send Email                
2026-10-13T12:00:09.8987267Z [identity] env.DB (g1t)                                                     D1 Database               
2026-10-13T12:00:09.8988341Z [identity] env.EVENTS (g1t-events)                                          Worker                    
2026-10-13T12:00:09.8989573Z [identity] env.REPOS (g1t-repos)                                            Worker                    
2026-10-13T12:00:09.8992052Z [identity] env.PROJECTS (g1t-projects)                                      Worker                    
2026-10-13T12:00:09.8994653Z [identity] env.BILLING (g1t-billing)                                        Worker                    
2026-10-13T12:00:09.9046969Z [identity] env.PROTECTED_WORKSPACES ("flagon-io")                           Environment Variable      
2026-10-13T12:00:09.9047220Z [identity] env.PROTECTED_ACCOUNTS ("")                                      Environment Variable      
2026-10-13T12:00:09.9047343Z [identity] env.GITHUB_APP_CLIENT_ID ("Iv23liZS94alfjIUn1eW")                Environment Variable      
2026-10-13T12:00:09.9047466Z [identity] env.INVITE_TTL_DAYS ("30")                                       Environment Variable      
2026-10-13T12:00:09.9047566Z [identity] env.INVITES_PER_USER ("20")                                      Environment Variable      
2026-10-13T12:00:09.9047784Z [identity] Uploaded g1t-identity (3.65 sec)
2026-10-13T12:00:11.1026142Z [identity] Deployed g1t-identity triggers (1.20 sec)
2026-10-13T12:00:11.1026394Z [identity]   schedule: */15 * * * *
2026-10-13T12:00:11.1030558Z [identity] Current Version ID: ae19255e-d597-43e3-be80-37ec92d606d3
2026-10-13T12:00:12.9044958Z [security]  ⛅️ wrangler 4.146.0 (update available 4.150.0)
2026-10-13T12:00:13.1676423Z [security] ───────────────────────────────────────────────
2026-10-13T12:00:13.1676586Z [security] [custom build] Running: node ../../scripts/build-rust-worker.mjs
2026-10-13T12:00:13.6356523Z [security] [custom build] [INFO]: Checking for the Wasm target...
2026-10-13T12:00:13.6358693Z [security] [custom build] 
2026-10-13T12:00:13.7034946Z [security] [custom build] [INFO]: Compiling to Wasm...
2026-10-13T12:00:13.7035865Z [security] [custom build] 
2026-10-13T12:00:14.2844060Z [security] [custom build]    Compiling g1t-contracts v0.1.0 (/home/runner/work/repo/crates/contracts)
2026-10-13T12:00:14.2844141Z [security] [custom build] 
2026-10-13T12:00:14.2844825Z [security] [custom build]    Compiling g1t-scan v0.1.0 (/home/runner/work/repo/crates/scan)
2026-10-13T12:00:14.2845411Z [security] [custom build]    Compiling g1t-actions v0.1.0 (/home/runner/work/repo/crates/actions)
2026-10-13T12:00:14.2845442Z [security] [custom build] 
2026-10-13T12:00:14.8056957Z [webhooks] Total Upload: 1050.84 KiB / gzip: 263.37 KiB
2026-10-13T12:00:16.8502848Z [webhooks] Worker Startup Time: 3 ms
2026-10-13T12:00:17.0838668Z [webhooks] Your Worker has access to the following bindings:
2026-10-13T12:00:17.0838809Z [webhooks] Binding                          Resource         
2026-10-13T12:00:17.0838897Z [webhooks] env.DB (g1t-webhooks)            D1 Database      
2026-10-13T12:00:17.0838973Z [webhooks] env.REPOS (g1t-repos)            Worker           
2026-10-13T12:00:17.0839037Z [webhooks] env.IDENTITY (g1t-identity)      Worker           
2026-10-13T12:00:17.0839074Z [webhooks] Uploaded g1t-webhooks (2.21 sec)
2026-10-13T12:00:17.9918969Z [webhooks] Deployed g1t-webhooks triggers (1.14 sec)
2026-10-13T12:00:18.2342204Z [webhooks]   schedule: * * * * *
2026-10-13T12:00:18.2342272Z [webhooks]   schedule: 37 * * * *
2026-10-13T12:00:18.2342331Z [webhooks]   Consumer for g1t-events-webhooks
2026-10-13T12:00:18.2342446Z [webhooks] Current Version ID: 4bdf5f36-32b2-48a0-862a-324ca6106334
2026-10-13T12:01:32.8468597Z [security] [custom build]    Compiling
2026-10-13T12:01:33.0776124Z [security] [custom build]  g1t-kit v0.1.0 (/home/runner/work/repo/crates/kit)
2026-10-13T12:01:33.0776176Z [security] [custom build] 
2026-10-13T12:01:36.1698296Z [security] [custom build]    Compiling g1t-security v0.1.0 (/home/runner/work/repo/services/security)
2026-10-13T12:01:36.4026714Z [security] [custom build] 
2026-10-13T12:02:13.3811894Z [security] [custom build]     Finished `release` profile [optimized] target(s) in 1m 59s
2026-10-13T12:02:13.6186426Z [security] [custom build] 
2026-10-13T12:02:15.5913172Z [security] [custom build] [INFO]: Optimizing wasm binaries with `wasm-opt`...
2026-10-13T12:02:15.5914830Z [security] [custom build] 
2026-10-13T12:02:19.2966701Z [security] [custom build] [INFO]: :-)Done in 2m 05s
2026-10-13T12:02:19.5780946Z [security] [custom build] [INFO]: :-) Your wasm pkg is ready to publish at /home/runner/work/repo/services/security/build/.tmp.
2026-10-13T12:02:19.5781035Z [security] [custom build] 
2026-10-13T12:02:19.5781063Z [security] [custom build] 
2026-10-13T12:02:19.5781094Z [security] [custom build]   index.js  27.4kb
2026-10-13T12:02:19.5781126Z [security] [custom build] 
2026-10-13T12:02:19.5781156Z [security] [custom build] ⚡ Done in 13ms
2026-10-13T12:02:19.5781181Z [security] [custom build] 
2026-10-13T12:02:20.6843866Z [security] Total Upload: 5801.89 KiB / gzip: 1473.24 KiB
2026-10-13T12:02:23.6897682Z [security] Worker Startup Time: 10 ms
2026-10-13T12:02:23.9149790Z [security] Your Worker has access to the following bindings:
2026-10-13T12:02:23.9149934Z [security] Binding                              Resource                  
2026-10-13T12:02:23.9150008Z [security] env.DB (g1t-security)                D1 Database               
2026-10-13T12:02:23.9150077Z [security] env.IDENTITY (g1t-identity)          Worker                    
2026-10-13T12:02:23.9150137Z [security] env.REPOS (g1t-repos)                Worker                    
2026-10-13T12:02:23.9150201Z [security] env.WORK (g1t-work)                  Worker                    
2026-10-13T12:02:23.9150261Z [security] env.RUNNER (g1t-runner)              Worker                    
2026-10-13T12:02:23.9150321Z [security] env.BILLING (g1t-billing)            Worker                    
2026-10-13T12:02:23.9150378Z [security] env.ACTIONS (g1t-actions)            Worker                    
2026-10-13T12:02:23.9150443Z [security] env.EVENTS (g1t-events)              Worker                    
2026-10-13T12:02:23.9150506Z [security] env.SITE_URL ("https://g1t.sh")      Environment Variable      
2026-10-13T12:02:23.9150527Z [security] Uploaded g1t-security (3.32 sec)
2026-10-13T12:02:24.8023880Z [security] Deployed g1t-security triggers (1.10 sec)
2026-10-13T12:02:25.1084748Z [security]   schedule: */30 * * * *
2026-10-13T12:02:25.1084863Z [security]   schedule: */5 * * * *
2026-10-13T12:02:25.1084935Z [security]   Consumer for g1t-events-security
2026-10-13T12:02:25.1085045Z [security] Current Version ID: 9c275619-fa32-4ff6-9462-82eee5be78d6
2026-10-13T12:02:25.1085075Z 
2026-10-13T12:02:25.1085179Z unit      stage  result  version                               time    note
2026-10-13T12:02:25.1085284Z --------  -----  ------  ------------------------------------  ------  ----
2026-10-13T12:02:25.1085381Z identity  core   ok      ae19255e-d597-43e3-be80-37ec92d606d3  97.6s
2026-10-13T12:02:25.1085481Z search    core   ok      46373d5d-b4c1-4d2f-b319-7318400589d9  48.9s
2026-10-13T12:02:25.1085569Z webhooks  core   ok      4bdf5f36-32b2-48a0-862a-324ca6106334  55.6s
2026-10-13T12:02:25.1085657Z security  core   ok      9c275619-fa32-4ff6-9462-82eee5be78d6  133.7s
2026-10-13T12:02:25.1085687Z 
2026-10-13T12:02:25.1085707Z Deployed in 232.5s.
